<?php
/*session_start();
//$_SESSION["user"] = null;
$currentUser = isset($_SESSION["user"])?$_SESSION["user"]:null;
if($currentUser) echo "欢迎";
else echo "权限受阻";*/

$id = $_GET["Id"];
$sql = " select * from `article` where id=$id ";
$conn = new mysqli("localhost","root","","mybolg");
$rs = $conn->query($sql);
if($conn->error) die($conn->error);
$detail = $rs->fetch_assoc();


?>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
        <title></title>
    </head>
    <body>
        <h3><?=$detail["Title"]?></h3>
        <div>
            <?=$detail["AuthorName"]?>编辑于
            <?=$detail["UpdateTime"]?>
        </div>
        <div><?=$detail["Content"]?></div>
        <a href="article_list.php">返回列表</a>

    </body>
</html>